package com.whxd.oauth.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore;

/**
 * @Desc 令牌管理方式， 即令牌存储策略
 * @Author Mr.Yao
 * @Date 2021/7/30 11:18
 * @Version 1.0
 */
@Configuration
public class TokenConfig {

    @Bean
    public TokenStore tokenStore(){
        //内存存储方式 普通令牌
        return new InMemoryTokenStore();
    }
}
